package org.embedchat.server;

import org.embedchat.entity.ChatRoom;
import org.embedchat.entity.User;

public class TempServerDatabase {
	
	public static void fillValues() {
		
		ChatRoom room = new ChatRoom();
		room.setDescription("default chat room");
		room.setMaxConcurrentGuests(1000);
		room.setMaxConcurrentRegisteredUsers(1000);
		room.setName("default");
		room.setWebURL("http://demo.embedchat.com/");
		
		User koba = new User();
		koba.setEmail("kobyleha@gmail.com");
		koba.setFirstName("Dmitry");
		koba.setLastName("Kobyleha");
		koba.setLoginName("koba");
		koba.setLoginPassword("koba");
		
		User erka = new User();
		erka.setEmail("erka.mercy@gmail.com");
		erka.setFirstName("Roman");
		erka.setLastName("Dmitrenko");
		erka.setLoginName("erka");
		erka.setLoginPassword("erka");

		User gomes = new User();
		gomes.setEmail("oleg.tsupka@gmail.com");
		gomes.setFirstName("Oleg");
		gomes.setLastName("Tsupka");
		gomes.setLoginName("gomes");
		gomes.setLoginPassword("gomes");
		
//		ChatRoomDAO cDAO = DAOFactory.getChatRoomDAO();
//		cDAO.makePersistent(room);
//		UserDAO uDAO = DAOFactory.getUserDAO();
//		uDAO.makePersistent(koba);
//		uDAO.makePersistent(erka);
//		uDAO.makePersistent(gomes);
	}

}
